package com.lex.entity;

/**
 * Created by Administrator on 2016/6/15.
 */
public class RecordEntity {
    public enum RECORD_TYPE{CONTACT,URL,TEXT};
    public enum RECORD_FROM{MAKE,SCAN};

    public RecordEntity(RECORD_TYPE hisImg,Object hisContent,RECORD_FROM hisFrom,long hisTime){
        this.hisImg = hisImg;
        this.hisContent = hisContent;
        this.hisFrom = hisFrom;
        this.hisTime = hisTime;
    }

    public RecordEntity(RECORD_TYPE hisImg, Object hisContent, RECORD_FROM hisFrom){
        this.hisImg = hisImg;
        this.hisContent = hisContent;
        this.hisFrom = hisFrom;
        this.hisTime = System.currentTimeMillis();
    }

    private RECORD_TYPE hisImg;
    private Object hisContent;
    private RECORD_FROM hisFrom;
    private long hisTime;

    public RECORD_TYPE getHisImg() {
        return hisImg;
    }

    public void setHisImg(RECORD_TYPE hisImg) {
        this.hisImg = hisImg;
    }

    public Object getHisContent() {
        return hisContent;
    }

    public void setHisContent(Object hisContent) {
        this.hisContent = hisContent;
    }

    public RECORD_FROM getHisFrom() {
        return hisFrom;
    }

    public void setHisFrom(RECORD_FROM hisFrom) {
        this.hisFrom = hisFrom;
    }

    public long getHisTime() {
        return hisTime;
    }

    public void setHisTime(long hisTime) {
        this.hisTime = hisTime;
    }
}
